package cn.itcast.dao.company;
import cn.itcast.domain.company.Company;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CompanyDao {

    public List<Company> findAll();

    void save(Company company);

    Company findById(String id);

    void updateById(Company company);

    void deleteById(String id);

    List findPage(@Param("start") int start,@Param("pageSize") int pageSize);

    Long findCount();

    List<String> findModuleLisByCompanyId(String companyId);

    void deleteCompanyAndModuleByCompanyId(String companyId);

    void saveCompanyAndModule(@Param("cId") String companyId,@Param("mId") String mId);
}
